package io.github.lingalone.monsterauth.domain;

import lombok.Data;
import org.apache.commons.lang3.SerializationUtils;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @author <a href="https://github.com/lingalone">lingalone</a>
 * @version 1.0.0
 * @link
 * @since 2018/7/24
 */
@Data
public class Base implements Serializable {

    private static final Long serialVersionUID = 1L;
    private Long id;
    private Date createTime;
    private Date updateTime;

    @Override
    public Base clone() throws CloneNotSupportedException {
        return SerializationUtils.clone((Base)super.clone());
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
